import request from '@/utils/request'

export default{

    //获取用户总数
    getCountData(){
        return request({
            url:'/ucenter/register/total/count',
            method:'get'
        })
    },

    //获取文章总数
    getArticleCount(){
        return request({
            url:'/article/get/total/count',
            method:'get'
        })
    },

    //获取网站访问量
    getPageView(){
        return request({
            url:'/sta/get/browse/num',
            method:'get'
        })
    },

    //获取用户在线总数
    getOnlineTotal(){
        return request({
            url:'/ucenter/get/online/num',
            method:'get'
        })
    },

    //获取饼状图数据
    getPie(){
        return request({
            url:'/article/select/hotlabels',
            method:'get'
        })
    },

    //获取各个省份登录IP数量
    getProvice(){
        return request({
            url:'/ucenter/get/ip/adress',
            method:'get'
        })
    },

    //获取折线图数据
    getLineData(arr){
       return request({
           url:`/sta/showData/${arr[0]}/${arr[1]}`,
           method:'post',
       })
    }
   
}